//
//  SHTabBarView.h
//  ShinyOrder
//
//  Created by 王方伟 on 16/7/22.
//  Copyright © 2016年 ShinyHub. All rights reserved.
//

#import <UIKit/UIKit.h>
@class SHTabBarView;

@protocol TabBarViewDelegage <NSObject>
@optional
- (void)tabBar:(SHTabBarView *)tabBar didSelectedButtonFrom:(long)from to:(long)to;
@end

@interface SHTabBarView : UIView
/** 是否需要中间按钮 */
@property (assign, nonatomic) BOOL isAddCenterButton;
@property (assign, nonatomic) NSUInteger selectedIndex;
@property (nonatomic, weak) id<TabBarViewDelegage> delegate;
/** 中间按钮的执行代码块 */
@property (nonatomic, copy) void(^middleClickBlock)(BOOL isPlaying);
/**
 设置TabBar

 @param barItem UITabBarItem
 */
-(void)addTabBarButtonWith:(UITabBarItem *)barItem;



@end
